<%--
  Created by IntelliJ IDEA.
  User: C4
  Date: 2021/10/28
  Time: 9:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<<head lang="en">
    <meta charset="utf-8"/>
    <title>Second-Hands Goods</title>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/public.css"/>

    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/mygxin.css"/>
    <script src="${pageContext.request.contextPath}/js/pccs.js"  type="text/javascript"></script>
    <style>
        .msg{
            text-align: center;
            color: red;
            font-size: 18px;
            margin-bottom: 10px;
        }
        /*小白写的地址的增加*/
        .addAddress {
            margin-left: 15px;
            text-align: center;
            justify-content: space-around;
        }
        .addAddress div {
            width: 765px;
            height: 158px;
            border: 1px solid #E0E0E0;
            padding: 20px 0 0 24px;
            color: #757575;
            line-height: 20px;
        }
        .addAddress div a {
            color: #A10000;
            display: inline-block;
            margin-right: 10px;
        }

         .addAddress div p:nth-child(1) {
            font-size: 18px;
            margin-bottom: 25px;
            color: #262626;
        }




    </style>
</head>
<body><!------------------------------head------------------------------>

<div class="head ding">
    <div class="wrapper clearfix">
        <div class="clearfix" id="top"><h1 class="fl"><a href="index.html"><img src="${pageContext.request.contextPath}/img/logo.png"/></a></h1>
            <div class="fr clearfix" id="top1"><p class="fl"><a href="login.html" id="login">登录</a><a href="reg.html"
                                                                                                      id="reg">注册</a>
            </p>
                <div class="btn fl clearfix"><a href="mygxin.html"><img src="${pageContext.request.contextPath}/img/grzx.png"/></a><a href="#" class="er1"><img
                        src="img/ewm.png"/></a><a href="cart.html"><img src="${pageContext.request.contextPath}/img/gwc.png"/></a>
                    <p><a href="#"><img src="${pageContext.request.contextPath}/img/smewm.png"/></a></p></div>
            </div>
        </div>
        <ul class="clearfix" id="bott">
            <li><a href="/index">首页</a></li>

        </ul>
    </div>
</div><!------------------------------idea------------------------------>
<div class="address mt">
    <div class="wrapper clearfix"><a href="/index" class="fl">首页</a><span>/</span><a
            href="/user/userInformation">个人中心</a><span>/</span><a href="address.html" class="on">地址管理</a></div>
</div><!------------------------------Bott------------------------------>

<div class="Bott">
    <div class="wrapper clearfix">
        <div class="zuo fl">
            <h3><a href="#"></a>
                <p class="clearfix"><span class="fl">[${user.userNickname}]</span><span class="fr"><a href="${path}/user/quit">[退出登录]</a></span></p></h3>
            <div><h4>我的交易</h4>
                <ul>
                    <li><a href="/user/orderlist">我的购物车</a></li>

                </ul>
                <h4>个人中心</h4>
                <ul>
                    <li><a href="/user/userInformation">我的中心</a></li>
                    <li class="on"><a href="#">地址管理</a></li>
                </ul>
                <h4>账户管理</h4>
                <ul>
                    <li><a href="/user/userInformation">个人信息</a></li>

                </ul>
            </div>
        </div>
        <div class="you fl"><h2>收货地址</h2>
            <div class="msg">
            ${msg}
        </div>
            <div class="add">
                <div>
                    <a href="#2" id="addxad"><img src="${pageContext.request.contextPath}/img/jia.png"/></a><span>添加新地址</span></div>
                <div class="dizhi"><p>(示例)六六六</p>
                    <p>1573****666</p>
                    <p>河北省 唐山市 路北区</p>
                    <p>唐山市大学生公寓村</p>
                </div>

            </div>
            <br>
            <div class="addAddress">
                <c:forEach items="${lists}" var="address" >
                    <div  class="dizhi"><p>${address.addressConsignee}</p>
                        <p>${address.addressPhonenumber}</p>
                        <p>${address.addressProvince},${address.addressCity},${address.addressCounty}</p>
                        <p>${address.addressProfile}</p>
                        <a href="/user/findbyid?addressdId=${address.addressId}"   >
                           修改

                        </a>
                        <a href="/user/addressDelete?addressdId=${address.addressId}">删除</a>
                    </div>
                   <br>
                </c:forEach>
            </div>
        </div>
    </div>
</div><!--编辑弹框--><!--遮罩-->
<div class="mask"></div>
<div class="adddz">

    <form action="${pageContext.request.contextPath}/user/addAddress" method="post">
        <input type="text" placeholder="姓名" class="on" name="Consignee"/>
        <input type="text" placeholder="手机号" name="Phonenumber"/>
        <div class="city"><select  name="province" id="province">

        </select><select name="city" id="city">

        </select><select name="county" id="county">

        </select></div>
        <script language="javascript">
            setup()
        </script>
        <textarea name="Profile" rows="" cols="" placeholder="详细地址" ></textarea>
        <div class="bc"><input type="submit" value="保存"/><input type="button" value="取消"/></div>
    </form>
</div>

<!--返回顶部-->
<div class="gotop"><a href="/user/orderlist">
    <dl>
        <dt><img src="${pageContext.request.contextPath}/img/gt1.png"/></dt>
        <dd>去购<br/>物车</dd>
    </dl>
</a><a href="#" class="dh">
    <dl>
        <dt><img src="${pageContext.request.contextPath}/img/gt2.png"/></dt>
        <dd>联系<br/>客服</dd>
    </dl>
</a><a href="/user/userInformation">
    <dl>
        <dt><img src="${pageContext.request.contextPath}/img/gt3.png"/></dt>
        <dd>个人<br/>中心</dd>
    </dl>
</a><a href="#" class="toptop" style="display: none">
    <dl>
        <dt><img src="${pageContext.request.contextPath}/img/gt4.png"/></dt>
        <dd>返回<br/>顶部</dd>
    </dl>
</a>
    <p>400-800-8200</p></div><!--footer-->
<div class="footer">
    <div class="top">
        <div class="wrapper">
            <div class="clearfix"><a href="#2" class="fl"><img src="${pageContext.request.contextPath}/img/foot1.png"/></a><span class="fl">7天无理由退货</span>
            </div>
            <div class="clearfix"><a href="#2" class="fl"><img src="${pageContext.request.contextPath}/img/foot2.png"/></a><span class="fl">15天免费换货</span>
            </div>
            <div class="clearfix"><a href="#2" class="fl"><img src="${pageContext.request.contextPath}/img/foot3.png"/></a><span class="fl">满599包邮</span>
            </div>
            <div class="clearfix"><a href="#2" class="fl"><img src="${pageContext.request.contextPath}/img/foot4.png"/></a><span class="fl">手机特色服务</span>
            </div>
        </div>
    </div>
    <p class="dibu">最家家居&copy;2013-2017公司版权所有 京ICP备080100-44备0000111000号<br/>
        违法和不良信息举报电话：400-800-8200，本网站所列数据，除特殊说明，所有数据均出自我司实验室测试</p></div>
<script src="${pageContext.request.contextPath}/js/jquery-1.12.4.min.js" type="text/javascript" charset="utf-8"></script>
<script src="${pageContext.request.contextPath}/js/public.js" type="text/javascript" charset="utf-8"></script>
<script src="${pageContext.request.contextPath}/js/user.js" type="text/javascript" charset="utf-8"></script>



</body>
</html>
